/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.agilelang.object;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import org.agilelang.object.attributes.ViewReport;

/**
 *
 * @author Roderick
 */
@XmlRootElement(name = "model")
public class Report  implements Serializable {

    @XmlAttribute
    public String name = "";
    public String caption = "";  
    public String model = "";  
    public String description = "";
    public String type = "";
    
    @XmlElement(name = "report")
    public List<ViewReport> reports = new ArrayList<ViewReport>();
    
    public void addViewReport(ViewReport report) {
        this.reports.add(report);
    }
    
}
